package org.nbict.iot.task.once.state;

import org.apache.storm.task.IMetricsContext;
import org.apache.storm.trident.state.State;
import org.apache.storm.trident.state.StateFactory;

import java.util.Map;

/**
 * Created by songseven on 18/7/10.
 */
public class RunningWinStateFactory implements StateFactory {
    @Override
    public State makeState(Map conf, IMetricsContext metrics, int partitionIndex, int numPartitions) {
        RunningWinState state = new RunningWinState();
        state.prepare();
        return state;
    }
}
